package me.aip.mov.init;

import me.aip.mov.util.PlayerUtil;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class SpringBootInit implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) {
        this.initSensitiveWord();
    }

    private void initSensitiveWord() {
//        SensitiveFilterUtil.initWordWork("/word/其他词库.txt");
//        SensitiveFilterUtil.initWordWork("/word/反动词库.txt");
//        SensitiveFilterUtil.initWordWork("/word/暴恐词库.txt");
//        SensitiveFilterUtil.initWordWork("/word/民生词库.txt");
//        SensitiveFilterUtil.initWordWork("/word/色情词库.txt");
//        SensitiveFilterUtil.initWordWork("/word/贪腐词库.txt");
        PlayerUtil.initPlayMap();
    }

}
